import BScroll from 'better-scroll'

let betterScrollHorizontal = function(that,wrapper,content,num, itemWidth){
    content.style.width=num * itemWidth +"rem";
    
 that.$nextTick(() => {
 that.scroll = new BScroll(wrapper, {
     scrollX:true, //水平横向滚动
     startX:0,//横向滚动
     scrollY:false,//关闭纵向滚动
     click:true//开启浏览器的原生click事件
     
 });
 });
}
export {betterScrollHorizontal}